
#region Imports

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Justa.Messaging
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    public class MessageGatewayFactory
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="destination"></param>
        /// 
        /// <returns></returns>
        /// 
        public static IMessageGateway CreateGateway(string destination)
        {
            if (destination == null || String.Empty.Equals(destination))
            {
                throw new ArgumentException("Specified Destination is null.");
            }

            return new MessageGateway(destination);
        }

        public static IMessageGateway CreateAsyncGateway(string destination)
        {
            if (destination == null || String.Empty.Equals(destination))
            {
                throw new ArgumentException("Specified Destination is null.");
            }

            return null;// new AsyncMessageGateway(destination);
        }
    }
}
